package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.MRUserGetListTask.MRUserGetListRequest;
import com.smiier.skin.net.MRUserGetListTask.MRUserGetListResponse;
import com.smiier.skin.net.entity.Answer;
import com.smiier.skin.net.entity.User;
import com.smiier.skin.util.GlobalSettings;

/**
 * 病历列表
 * 
 * @author 杨文华
 * 
 */
public class MRUserGetListTask extends
		NetTask<MRUserGetListRequest, MRUserGetListResponse> {

	public static class MRUserGetListRequest extends ORequest {
		public String token;
		public long startuid;
		public int pagesize;
		public String appname = Constant.APP_NAME;
		public int need_question = GlobalSettings.IS_FALSE;
	}

	public static class MRUserGetListResponse extends OResponse {
		public MRUserList Res;
	}

	public static class MRUserList implements INoProguard {
		public int Count;
		public ArrayList<MRUser> MRUsers;
	}

	public static class MRUser implements INoProguard {
		public long Source;
		public long Uid;
		public User User;
		public Answer Answer;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=MR.User.GetList";
		mRequestMethod = METHOD_GET;
	}

}
